//
//  GifNavigationController.m
//  GIFShow
//
//  Created by lanou11air029 on 15/3/31.
//  Copyright (c) 2015年 CK. All rights reserved.
//

#import "GifNavigationController.h"
#import "MySettingOptions.h"
@interface GifNavigationController ()

@end

@implementation GifNavigationController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self myTheme];
    [[NSNotificationCenter defaultCenter]addObserverForName:@"ChangeTheme" object:nil queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *note) {
        [self myTheme];
    }];
//    self.navigationBar.barStyle = UIBarStyleBlackTranslucent;
//    self.hidesBottomBarWhenPushed = YES;
   
    // Do any additional setup after loading the view.
}
-(void)myTheme{
        NSString * backcolorstr = [MySettingOptions defaultOptions].backColor;
        NSString * name = [NSString stringWithFormat:@"%@nav",backcolorstr];
        [self.navigationBar setBackgroundImage:[UIImage imageNamed:name] forBarMetrics:UIBarMetricsDefault];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
